<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.4.js"></script>
    <script>

    $.ajax({
        url:"http://localhost:8080/hi",
        data:{"name":"李四"},
        type:"post",
        success:function(ak){
            alert(ak)
        }


    })

    </script>


        </head>
        <body>

        </body>
        </html>